// const baseURL = 'http://127.0.0.1:8090/api/collections'
// const baseURL = 'http://192.168.100.225:8090/api/collections'
const baseURL = 'http://192.168.1.51:8090/api/collections'


export const getAreasApi = () => uni.request({
	method: 'GET',
	url: `${baseURL}/areas/records`
});

export const getCtgsApi = () => uni.request({
	method: 'GET',
	url: `${baseURL}/ctgs/records`
});

export const getPostsApi = (filter) => uni.request({
	method: 'GET',
	url: `${baseURL}/posts/records?filter=${filter}`,
});


export const getPostsByIdApi = (id) => uni.request({
	method: 'GET',
	url: `${baseURL}/posts/records/${id}?expand=belong`
});